"Pecknet_Session", "auth" => "Pecknet_Default_Auth", "perm" => "Pecknet_Perm", "user" => "Pecknet_User")); $auth->login_if($auth->auth["uid"]=="nobody"); $perm->check("user"); if($submitt) { $datestamp = date("U"); $body = preprocess($body,$method); $body = ereg_replace("'", "''", $body); $topic = ereg_replace("'", "''", $topic); $insert="insert into news (name,email,topic,body,thread,datestamp,parent) values('" . $auth->auth["fullname"] . "','" . $auth->auth["email"] . "','$topic','$body','$eid','$datestamp','$parent')"; if(mysql_query($insert)) { $url = $sess->url("index.php?category=" . $auth->auth["category"]."&eid=$parent"); header("Location: $url"); } else { print "Error\n"; } } else { $title = "Reply"; include "templates/main_header.inc"; $array = new http_var; $array->set("http","true"); $array->set("name",$auth->auth["fullname"]); $array->set("email",$auth->auth["email"]); $array->set("body",$body); $array->set("method",$method); $array->set("topic",$topic); $array->set("datestamp",date("U")); $array->set("parent",$parent); $array->set("category",$category); $sql="select * from news where id=$eid"; $reply = new DB_Pecknet; $reply->query($sql); $reply->next_record(); if($parent==$eid) { printnews($reply,0); } else { printcomment($reply); } ?>

Enter your Reply Below...